﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using NRCP.Helpers;

namespace NRCP.App_Logic.Dummy
{
    public class Farmers
    {
        public String FarmerCode
        {
            get;
            set;
        }
        public String Name
        {
            get;
            set;
        }
        public String Address
        {
            get;
            set;
        }

        public String Zilla
        {
            get;
            set;
        }

        public String PO
        {
            get;
            set;
        }

        public String District
        {
            get;
            set;
        }
        public String Remarks
        {
            get;
            set;
        }
    }

    public class NationalPlanDetails
    {
        public String TestParameter
        {
            get;
            set;
        }

        public Int32 Galda
        {
            get;
            set;
        }

        public Int32 Bugda
        {
            get;
            set;
        }

        public Int32 Harina
        {
            get;
            set;
        }

        public Int32 Fish
        {
            get;
            set;
        }

        public Int32 Total
        {
            get
            {
                return this.Galda + this.Bugda + this.Harina + this.Fish;
            }
            
        }

    }

    //public class NationalPlan
    //{
    //    public Int32 PlanYear
    //    {
    //        get;
    //        set;
    //    }

    //    public String Status
    //    {
    //        get;
    //        set;
    //    }

    //    public String CreatedBy
    //    {
    //        get;
    //        set;
    //    }
    //}
    public class ProxyData
    {
        //public static List<NationalPlan> GetNationalPlans()
        //{
        //    List<NationalPlan> _lists = new List<NationalPlan>();
        //    NationalPlan _plan = new NationalPlan();
        //    _plan.CreatedBy = "Shetty Seetharama";
        //    _plan.PlanYear = 2012;
        //    _plan.Status = PlanStatus.InProgress.ToString();
        //    _lists.Add(_plan);
        //    return _lists;
        //}

        public static List<Farmers> GetAllFarmers()
        {
            List<Farmers> _lists = new List<Farmers>();
            Farmers _plan = new Farmers();
            _plan.Address = "PO. BaroiKhali";
            _plan.FarmerCode = "102 11 QC/S-91";
            _plan.Remarks = AssesmentStatus.Satisfactory.ToString();
            _plan.Name = "H.M. Shahidul Islam";
            _plan.Zilla = "Morelganj";
            _plan.PO = "Morelganj";
            _plan.District = "Bagerhat";
            _lists.Add(_plan);

            _plan = new Farmers();
            _plan.Address = "PO. Mikshimil, Dumuria,Khulna";
            _plan.FarmerCode = "02 11 QC/S-001";
            _plan.Remarks = AssesmentStatus.NotSatisfactory.ToString();
            _plan.Name = "Md. Ashraful Alam";
            _lists.Add(_plan);

            _plan = new Farmers();
            _plan.Address = "PO. Siddpasha, Shyamnagar,Jessore";
            _plan.FarmerCode = "102 11 QC/S-008";
            _plan.Remarks = AssesmentStatus.Satisfactory.ToString();
            _plan.Name = "Md. Shaheb Ali";
            _lists.Add(_plan);


            _plan = new Farmers();
            _plan.Address = "PO. Gara Khola, Fultala,Khulna";
            _plan.FarmerCode = "102 11 QC/S-033";
            _plan.Remarks = AssesmentStatus.Satisfactory.ToString();
            _plan.Name = "Md. Mukul Morol";
            _lists.Add(_plan);
            return _lists;
        }


        public static List<NationalPlanDetails> GetNationalPlanSummary()
        {
            List<NationalPlanDetails> _lists = new List<NationalPlanDetails>();
            NationalPlanDetails _plan = new NationalPlanDetails();
            _plan.Bugda = 0;
            _plan.Fish = 18;
            _plan.Galda = 0;
            _plan.Harina=0;
            _plan.TestParameter="A1";
            _lists.Add(_plan);

            _plan = new NationalPlanDetails();
            _plan.Bugda = 0;
            _plan.Fish = 18;
            _plan.Galda = 0;
            _plan.Harina = 0;
            _plan.TestParameter = "A3";
            _lists.Add(_plan);

            _plan = new NationalPlanDetails();
            _plan.Bugda = 143;
            _plan.Fish = 18;
            _plan.Galda =152;
            _plan.Harina = 27;
            _plan.TestParameter = "A6";
            _lists.Add(_plan);

            _plan = new NationalPlanDetails();
            _plan.Galda = 154;
            _plan.Bugda = 144;
            _plan.Harina = 28;
            _plan.Fish = 54;         
            _plan.TestParameter = "B1";
            _lists.Add(_plan);


            _plan = new NationalPlanDetails();
            _plan.Galda = 62;
            _plan.Bugda = 58;
            _plan.Harina = 11;
            _plan.Fish = 20;   
            _plan.TestParameter = "B2a";
            _lists.Add(_plan);


            _plan = new NationalPlanDetails();
            _plan.Galda = 22;
            _plan.Bugda = 21;
            _plan.Harina = 4;
            _plan.Fish = 8;   
            _plan.TestParameter = "B3a";
            _lists.Add(_plan);


            _plan = new NationalPlanDetails();
            _plan.Galda = 22;
            _plan.Bugda = 21;
            _plan.Harina = 4;
            _plan.Fish = 8;   
            _plan.TestParameter = "B3c";
            _lists.Add(_plan);


            _plan = new NationalPlanDetails();
            _plan.Galda = 22;
            _plan.Bugda = 21;
            _plan.Harina = 4;
            _plan.Fish = 8;   
            _plan.TestParameter = "B3d";
            _lists.Add(_plan);


            _plan = new NationalPlanDetails();
            _plan.Galda = 26;
            _plan.Bugda = 24;
            _plan.Harina = 5;
            _plan.Fish = 8;   
            _plan.TestParameter = "B3e";
            _lists.Add(_plan);
            return _lists;
        }
    }
}